Guild icon
Project Sekai
🔒 UMDCTF 2023 / ✅-crypto-reduce-thyself
Avatar
Reduce Thyself - 500 points
Category: Crypto Description: I don't think Pokemon really like the idea of self-reducibility... RESOURCE: 10.5.1 in this textbook may prove useful. Author: gary nc 0.cloud.chals.io 33047 Files:Tags: No tags.
Sutx pinned a message to this channel. 04/28/2023 7:59 PM
Avatar
@fleming wants to collaborate 🤝
Avatar
@layka_ wants to collaborate 🤝
21:22
@unpickled admin bot wants to collaborate 🤝
Avatar
one idea i got is generating a random u such that u.flag_enc is prime .. and decrypt it using the oracle .. depending on n ig there is a non zero probability to have such u .. the paper suggests using dlog .. but there is no checks made ig my methodo works
21:45
i cannot implement it cuz am out fir 3 days
Avatar
Avatar
layka_
one idea i got is generating a random u such that u.flag_enc is prime .. and decrypt it using the oracle .. depending on n ig there is a non zero probability to have such u .. the paper suggests using dlog .. but there is no checks made ig my methodo works
unpickled admin bot 04/28/2023 9:45 PM
i tried bruting this a bit ago
21:45
maybe i was unlucky
21:45
but
21:45
tbf i only tried once
21:45
so imma try a few more times ig
Avatar
probability is 0.1
Avatar
unpickled admin bot 04/28/2023 9:46 PM
however, i will say the probablility is probably negligble?
Avatar
so you need to try 10 times or sth ig
Avatar
unpickled admin bot 04/28/2023 9:46 PM
wait how did you get .1?
21:46
ill do it ig
Avatar
in paper
Avatar
unpickled admin bot 04/28/2023 9:46 PM
oh....
21:46
uh
21:46
yk i prob shouldnt have skimmed that lmao
Avatar
ig in the paper is just an exampl3 no ?
Avatar
yeah example
21:47
idk our case
Avatar
another way is submitting flag_enc^2
Avatar
you can only submit prime right
21:47
oh
Avatar
yep .. but with %n can be prime
Avatar
a non zero proba also
Avatar
yeah idk how likely it is
Avatar
and with each iteration it has new params
Avatar
unpickled admin bot 04/28/2023 9:48 PM
also wait
21:48
@sahuang
21:48
it doesnt take mod n before checking
21:48
so maybe just spam add n till its prime?
Avatar
b'UMDCTF{s3lf_r3duc!bility_1s_n0t_ju5t_f0r_DH_97912837923}'
21:49
i solved it
Avatar
it has conn.recv(1024)
21:49
goood
21:50
how was that
Avatar
just send a prime
21:50
curr = flag_ct + n while not isPrime(curr): curr += n
21:50
lmao
21:50
gives result in 5 seconds
Avatar
Avatar
unpickled admin bot
it doesnt take mod n before checking
unpickled admin bot 04/28/2023 9:50 PM
wait so this
21:50
oh
21:50
lmao
21:50
right lol
21:50
funny
Avatar
unpickled admin bot 04/28/2023 9:50 PM
sadge i should have tried that earlier :< (edited)
Avatar
Avatar
sahuang
used /ctf solve
✅ Challenge solved.
Avatar
unpickled admin bot 04/28/2023 9:50 PM
owel
Avatar
yeah i overlooked it
Avatar
unpickled admin bot 04/28/2023 9:50 PM
same ig lmao
Avatar
@layka_ nice catch lmao
Exported 57 message(s)